package com.learner.course.controller.api;

import com.learner.course.service.CourseCateService;
import com.learner.course.service.impl.CourseCateServiceImpl;
import com.learner.pojo.course.expand.CategoryNode;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author ice2020x
 * @date 2022-01-27 19:32
 * @description:
 */
@RestController
@RequestMapping("/api/edu/course")
public class ApiCourseCateController {

    @Autowired
    private CourseCateService courseCateService;

    /**
     * 查询课程的分类
     *
     * @return 结果
     */
    @GetMapping("/course_cate/list")
    public CategoryNode selectCateList() {
        return courseCateService.selectCateList();
    }
}
